import Vue from 'vue'
import Vuex from 'vuex'

import config from './config'
import task from './task'
import worktime from './worktime'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: { task, config, worktime }
})

//加载配置文件
store.commit('loadConfig')

export default store